<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script src="/public/transcode.js"></script>
<script>
    var code = getQueryString('code');
    var nowdomain = getQueryString('nowdomain');
    window.location.replace(nowdomain+'/public/transit/getWechatCode.html?code='+code);
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return decodeURI(r[2]);
        return null;
    }
</script>
</body>
</html>